id = input("请输入ID：")
email = input("请输入EMAIL地址：")
id_number = input("请输入身份证号：")
name = input("请输入姓名：")

# 验证用户信息
if len(id) > 8 or not id.isalnum():
    print("ID格式不正确！")
elif "@" not in email or "." not in email:
    print("EMAIL地址格式不正确！")
elif len(id_number) != 18:
    print("身份证号格式不正确！")
elif not all('\u4e00' <= char <= '\u9fff' for char in name) or len(name) > 4:
    print("姓名格式不正确！")
else:
    # 输出用户信息
    gender = "男" if int(id_number[-2]) % 2 else "女"
    print("用户信息：")
    print("ID：", id)
    print("EMAIL地址：", email)
    print("身份证：id_number")
